<%@ page import="com.dom.user" %>
<%@ page import="java.util.ArrayList" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="base.jsp"%>
<%@ page import="com.dom.info" %>
<html>
<head>


    <title>Title</title>
   
    <link rel="stylesheet" href="css/bootstrap.min.css">
   
    <link rel="stylesheet" href="css/user.css">
 
    <script type="text/javascript" src="js/user.js"></script>

</head>

<body>

<div id="contes" style="">
   
    <form method="post" action="user">
      
        <div class="form-group">
           
            <label>修改密码</label>
           
            <input type="password" class="form-control" name="password">
     
        </div>
       
        <div class="form-group">
            
            <label>再次输入密码</label>
           
            <input type="password" class="form-control" name="repassword">
        
        </div>
        
        <div class="form-group">
            
            <label>年龄</label>
            
            <input type="text" class="form-control" name="age">
       
        </div>
       
        <div class="form-control">
            
            <label>选择性别</label>
           
            <input type="radio" name="sex" value="boy">男
          
            <input type="radio" name="sex" value="girl">女
       
        </div>
        
        <div class="form-control">
           
            <label>选择性别</label>
            
            <input type="radio" name="degree" value="best">博士学位
            
            <input type="radio" name="degree" value="better">硕士学位
            
            <input type="radio" name="degree" value="good">本科学位
            
            <input type="radio" name="degree" value="losser">其他
        </div>
        
        <div class="form-group">
         
            <label>输入工作</label>
            
            <input type="text" class="form-control" name="job">
      
        </div>
        
        
        <button type="submit" class="btn btn-primary">提交</button>
   
    </form>

</div>

<%
    user temp = (user) session.getAttribute("user");
%>

<div>
    
    <div class="card" style="width: 32rem; margin-left: 10%; float: left">
      
        <img src="image/one.jpg" class="card-img-top" alt="个人头像">
       
        <div class="card-body">
           
            <h5 class="card-title">用户名</h5>
          
            <p class="card-text"><%=temp.getName()%></p>
      
        </div>
      
        <ul class="list-group list-group-flush">
         
            <li class="list-group-item">
              
                性别:<%=temp.getSex()%>
           
            </li>
           
            <li class="list-group-item">
               
                年龄:<%=temp.getAge()%>
            
            </li>
            
            <li class="list-group-item">
          
                学历:<%=temp.getDegree()%>
           
            </li>
            
            <li class="list-group-item">
            
                工作:<%=temp.getJob()%>
           
            </li>
      
        </ul>
       
        <div class="card-body">
           
            <a href="javascript:void(0)" onclick="addForm()" class="card-link">修改信息</a>
        
        </div>
  
    </div>
  
    <div style="margin-right: 40%; float: right">
       
        <ul class="list-group">
           
            <li class="list-group-item">
           
                <font size="6">您已通过的申报信息</font>
          
            </li>
    
        </ul>
      
      
        <%
            ArrayList<info> infos = (ArrayList<info>) session.getAttribute("userInfos");
            for (int i=0; i<infos.size(); i++){
                info data = infos.get(i);
        %>
      
        <ul class="list-group">
           
            <li class="list-group-item">
              
                <font size="4">时间:<%=data.getDate()%>    </font>
               
                <font size="4">地点:<%=data.getLocation()%>    </font>
          
            </li>
      
        </ul>
      
        <%}
      
            %>
  
    
    </div>

</div>

</body>

</html>
